# -*- coding:utf-8 -*-

import urllib2


def web_static(url):

    user_agent = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML,' \
                 'like Gecko) Chrome/60.0.3112.90 Safari/537.36'
    headers = {'User-Agent': user_agent}

    try:
        request = urllib2.Request(url, headers=headers)
        response = urllib2.urlopen(request)
        return response.read()
    except Exception as e:

        print u'网页链接错误原因：'
        print e
        return False

